﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace VectorGraph.Editor
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void miExit_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = false;
        }

        /// <summary>
        /// 打开文件。这个方法包含了从界面取得文件名称的步骤。
        /// </summary>
        private void Open()
        {
            if(openFileDialog.ShowDialog() == DialogResult.OK)
            {

            }
        }

        private void miOpen_Click(object sender, EventArgs e)
        {
            Open();
        }

        private void toolsbLine_Click(object sender, EventArgs e)
        {
            MessageBox.Show("It is a test.");
        }
    }
}
